<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>举报审核</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="/node_modules/LobsterUIFrame/layuiadmin/layui/css/layui.css" rel="stylesheet" />
    <link href="/node_modules/LobsterUIFrame/layuiadmin/style/admin.css" rel="stylesheet" />
    <link href="/node_modules/LobsterUIFrame/layuiadmin/layui/css/modules/layui-icon-extend/iconfont.css"
        rel="stylesheet" />
    <script src="/node_modules/LobsterUIFrame/layuiadmin/layui/layui.js"></script>
</head>
<style>
    .item_img {
        height: 100px;
    }
</style>

<body>
    <div class="layui-fluid box">
        <form class="layui-form" lay-filter="formdata" id="formdata">
            <div class="layui-card">
                <div class="layui-card-body box">
                    <input type="hidden" name="RelatedId" value="0" />
                    <div class="layui-form-item active">
                        <label class="layui-form-label"><i style="color:red;">*&ensp; </i>审核记过</label>
                        <div class="layui-input-block">
                            <input type="radio" name="AuditResult" value="1" checked title="未违规" />
                            <input type="radio" name="AuditResult" value="2" title="违规" />
                        </div>
                    </div>
                    <div class="layui-form-item active">
                        <label class="layui-form-label"><i style="color:red;">*&ensp; </i>审核描述</label>
                        <div class="layui-input-block">
                            <textarea name="AuditDesc" style="width: 100%;height: 200px;"></textarea>
                        </div>
                    </div>
                </div>
            </div>
    </div>
    </form>
    </div>
</body>

</html>
<script>
    layui.config({
        base: '/node_modules/LobsterUIFrame/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    });

    layui.define(['index', 'layer', 'form', 'element', 'table', 'laydate', 'upload'], function () {
        var layer = layui.layer;
        var admin = layui.admin;
        var $ = layui.$;
        var form = layui.form;
        var laytpl = layui.laytpl;
        var upload = layui.upload;
        var controller = {
            data: {
                model: {
                },
                selectdata: {},

            },
            init: function () {
                var self = this;
                self.data.selectdata=parent.selectdata; 
                self.initEvent();
            },
            getbaseurl: function (fun) {
                var url = "/lowcode/APP20210728143245471/member/?view=layui&fun=" + fun;
                return url;
            },
            //页面加载
            initEvent: function () {
                var self = this;
                parent.getResult = function () {
                    self.data.model = form.val("formdata");
                    self.data.model.RelatedId=self.data.selectdata.RelatedId;
                    if (!self.data.model.AuditDesc) {
                        layer.msg("审核描述不能为空");
                        return;
                    }
                    return self.data.model;
                }
            },
        }
        controller.init();
    });
</script>